/*Copyright (C) 2009 - 2011 MASSART GAUTHIER and Careil Baptiste

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MAJ_HEADER
#define MAJ_HEADER

#ifdef WIN32
#define nom_jeu_maj "[MAJ]Les Jeux Indemodables.exe"
#define nom_jeu			"Les Jeux Indemodables.exe"
#define update      "mise_a_jour.exe"
#else
#define nom_jeu_maj "[MAJ]les-indemodables"
#define nom_jeu			"les-indemodables"
#define update      "mise_a_jour"
#endif

#define src_global      "/hg/src/"
#define exec_win        "/hg/exe-win/"
#define exec_linux      "/hg/exe-linux/i686/"
#define fichier_a_suppr "suppr"

void editer_liste_nouveautes_version(char liste_nouveautes_version[5][35]);

void changer_type_source(short x, short y, short k, char chemin_fichier[20]);

void editer_liste_fichiers_version(char liste_chemins_fichiers[90][20], char liste_fichiers[90][100], char liste_md5_ascii[90][33]);

void generer_md5_version_txt(char liste_chemins_fichiers[90][20], char liste_fichiers[90][100], char liste_md5_ascii[90][33]);

void creer_version_txt();

bool info_verif_maj(char *info_maj, char *fichiers_non_a_jour);

void mise_a_jour();

#endif
